package com.dianping.cat.alarm.receiver.entity;

import com.dianping.cat.alarm.receiver.BaseEntity;
import com.dianping.cat.alarm.receiver.IVisitor;
import java.util.ArrayList;
import java.util.List;





public class Receiver
  extends BaseEntity<Receiver>
{
  private String m_id;
  private Boolean m_enable;
/*  17 */   private List<String> m_emails = new ArrayList();

/*  19 */   private List<String> m_dxs = new ArrayList();

/*  21 */   private List<String> m_phones = new ArrayList();

/*  23 */   private List<String> m_weixins = new ArrayList();





  public Receiver(String id) { this.m_id = id; }




/*  34 */   public void accept(IVisitor visitor) { visitor.visitReceiver(this); }


  public Receiver addDx(String dx) {
/*  38 */     this.m_dxs.add(dx);
/*  39 */     return this;
  }

  public Receiver addEmail(String email) {
/*  43 */     this.m_emails.add(email);
/*  44 */     return this;
  }

  public Receiver addPhone(String phone) {
/*  48 */     this.m_phones.add(phone);
/*  49 */     return this;
  }

  public Receiver addWeixin(String weixin) {
/*  53 */     this.m_weixins.add(weixin);
/*  54 */     return this;
  }


  public boolean equals(Object obj) {
/*  59 */     if (obj instanceof Receiver) {
/*  60 */       Receiver _o = (Receiver)obj;

/*  62 */       if (!equals(getId(), _o.getId())) {
/*  63 */         return false;
      }

/*  66 */       return true;
    }

/*  69 */     return false;
  }


/*  73 */   public List<String> getDxs() { return this.m_dxs; }



/*  77 */   public List<String> getEmails() { return this.m_emails; }



/*  81 */   public Boolean getEnable() { return this.m_enable; }



/*  85 */   public String getId() { return this.m_id; }



/*  89 */   public List<String> getPhones() { return this.m_phones; }



/*  93 */   public List<String> getWeixins() { return this.m_weixins; }






/* 106 */   public boolean isEnable() { return (this.m_enable != null && this.m_enable.booleanValue()); }



  public void mergeAttributes(Receiver other) {
/* 111 */     assertAttributeEquals(other, "receiver", "id", this.m_id, other.getId());

/* 113 */     if (other.getEnable() != null) {
/* 114 */       this.m_enable = other.getEnable();
    }
  }

  public Receiver setEnable(Boolean enable) {
/* 119 */     this.m_enable = enable;
/* 120 */     return this;
  }

  public Receiver setId(String id) {
/* 124 */     this.m_id = id;
/* 125 */     return this;
  }

  public Receiver() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/receiver/entity/Receiver.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */